package com.kelvin.paopao.injector.modules;

import com.kelvin.paopao.injector.PerActivity;
import com.kelvin.paopao.module.main.date.publish.eat.IPublishEatPresenter;
import com.kelvin.paopao.module.main.date.publish.eat.PublicEatActivity;
import com.kelvin.paopao.module.main.date.publish.eat.PublishEatPresenter;

import dagger.Module;
import dagger.Provides;

/**
 * Created by Administrator on 2017/5/14.
 */

@Module
public class PublishEatModule {
    private PublicEatActivity mView;

    public PublishEatModule(PublicEatActivity view) {
        this.mView = view;
    }

    @PerActivity
    @Provides
    public IPublishEatPresenter providePresenter() {
        return new PublishEatPresenter(mView);
    }
}
